package cn.edu.zafu.bigdata.hzq;

public class Text2 {
    public static void main(String[] args) {
    // 创建 MathOperations 对象
    MathOperations mathOps = new MathOperations();

    // 调用 add 方法，传入两个整数参数
    int sumInt = mathOps.add(5, 3);
    System.out.println("Sum of two integers: " + sumInt);

    // 调用 add 方法，传入两个浮点数参数
    double sumDouble = mathOps.add(5.5, 2.3);
    System.out.println("Sum of two doubles: " + sumDouble);

    // 调用 add 方法，传入三个整数参数
    int sumThreeInts = mathOps.add(5, 3, 2);
    System.out.println("Sum of three integers: " + sumThreeInts);
     }
}
